import Vue from 'vue'
import Router from 'vue-router'
import Welcome from '@/components/Welcome'
import PersonInfo from "../components/PersonInfo";
import MessageList from "../components/MessageList";
import MessageAdd from "../components/MessageAdd";
import NoticeList from "../components/NoticeList";
import NoticeAdd from "../components/NoticeAdd";
import SigninList from "../components/SigninList";
import LeaveApplication from "../components/LeaveApplication";
import LeaveList from "../components/LeaveList";
import Login from "../views/Login";
import BusinessList from "../components/BusinessList";

Vue.use(Router)


export default new Router({
  routes: [
    {
      path: '/welcome',
      name: 'Welcome',
      component: Welcome
    }, {
      path: '/person_info',
      component: PersonInfo
    }, {
      path: '/goods_add',
      component: MessageAdd
    }, {
      path: '/message_list',
      component: MessageList
    }, {
      path: '/notice_list',
      component: NoticeList
    }, {
      path: '/notice_add',
      component: NoticeAdd
    }, {
      path: '/signin_list',
      component: SigninList
    }, {
      path: '/leave_add',
      component: LeaveApplication
    }, {
      path: '/leave_list',
      component: LeaveList
    }, {
      path: '/',
      component: Login
    }, {
      path: '/business_list',
      component: BusinessList
    }
  ]
})
